--
-- Agregado de campo ID por ahora UNIQUE, no PKEY
--

CREATE SEQUENCE public.seq_artr
    INCREMENT 1
    START 1
    MINVALUE 1
    MAXVALUE 9223372036854775807
    CACHE 1;

ALTER SEQUENCE public.seq_artr
    OWNER TO abacouser;
	
ALTER TABLE ARTR 
  ADD COLUMN ID INTEGER DEFAULT NEXTVAL('seq_artr') NOT NULL;

ALTER TABLE public.ARTR
    ADD CONSTRAINT gestion_ai_artr_unique UNIQUE (id);

--
select aaVersion('518.05','518.04');
--	
	
	


